package com.atguigu.team.domain;

/**
 * 架构师----继承设计师类-----程序员类----员工类
 */
public class Architect extends Designer{
    private int stock;

    public Architect(){
        super();
    }
    public Architect(int id, String name, int age, double salary, Equipment equipment, double bonus, int stock) {
        super(id, name, age, salary, equipment, bonus);
        this.stock = stock;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }
    @Override
    public String toString() {
        return getDetails() + "\t架构师\t"+ getStatus() + "\t" + getBonus() + "\t" +stock+"\t"+getEquipment().getDescription();
    }
    public String getDetailForTeam(){
        return getMemberId() + "/" + getId() + "\t" +getName() + "\t" + getAge() + "\t" +getSalary() +"\t架构师\t" + getBonus() + "\t" + getBonus();
    }
}
